package me.ratel.demo.eBook.infrastructure.exceptions;

/**
 * @author Administrator
 * @time 2016/9/15 15:31
 */
public class DefaultErrorHeader implements IErrorHeader {
    private Integer errorCode;

    private String errorMsg;

    public DefaultErrorHeader(Integer errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    @Override public Integer getErrorCode() {
        return this.errorCode;
    }

    @Override public String getErrorMsg() {
        return this.errorMsg;
    }
}
